<template>
    <!-- 首页功能快捷入口 Grid宫格-->
    <van-grid>
        <van-grid-item v-for="(item,i) in homeItems" :key="i" :icon="item.img" :text="item.title"
            :to="{name:item.routeName}" />
    </van-grid>
</template>
 
<script>
   import menu1 from "@/assets/images/menu1.png";
   import menu2 from "@/assets/images/menu2.png";
   import menu3 from "@/assets/images/menu3.png";
   import menu4 from "@/assets/images/menu4.png";
   import menu5 from "@/assets/images/menu5.png";
   import menu6 from "@/assets/images/menu6.png";
    export default {
        name: 'homeEnter',
        data() {
            return {
                //首页快捷功能入口
                homeItems: [{
                        title: "新闻资讯",
                        routeName: "working",
                        img: menu1,
                    },
                    {
                        title: "图片分享",
                        routeName: "working",
                         img: menu2,
                    },
                    {
                        title: "商品购买",
                        routeName: "product",
                         img: menu3,
                    },
                    {
                        title: "留言反馈",
                        routeName: "working",
                        img: menu4,
                    },
                    {
                        title: "视频专区",
                        routeName: "working",
                         img: menu5,
                    },
                    {
                        title: "联系我们",
                        routeName: "working",
                         img: menu6,
                    },
                ],
            }
        },
    }
</script>
<style scoped>
</style>